<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>代表信息</title>
    <style>
        .high {
            color: red;
        }
    </style>
</head>
<body>
    <h1>代办信息</h1>
    <p>共 <%= todos.length %> 条代办事项</p>
    <button onclick="location.href='/todo-form.html'">添加代办事项</button>
    <ul>
        <% for (const todo of todos) { %>
            <li>
                <%= todo.title %>
                <i class="high">优先级: <%= todo.priority %></i>
            </li>
        <% } %>
    </ul>
</body>
</html>